import request  from '@/utils/request.js'
export function listProductUnit(query){
    return request({
            url: '/product/productunit/list',
            params:query,
            method:'GET'
        }
    )

}
export function saveProductUnit(productUnit){
    return request({
            url: '/product/productunit/save',
            data:productUnit,
            method:'PUT'
        }
    )}
export function updateProductUnit(productUnit){
    return request({
            url: '/product/productunit/update',
            data:productUnit,
            method:'PUT'
        }
    )}
export function getProductUnitDetails(id){
    return request({
            url: `/product/productunit/${id}`,
            method:'GET'
        }
    )}
export function deleteProductUnit(ids){
    return request({
            url: `/product/productunit/${ids}`,
            method:'DELETE'
        }
    )}
